package com.dianping.cat.home.dependency.graph.entity;

import com.dianping.cat.home.dependency.graph.BaseEntity;
import com.dianping.cat.home.dependency.graph.IVisitor;





public class TopologyNode
  extends BaseEntity<TopologyNode>
{
  private String m_id;
  private String m_type;
  private int m_status;
/*  16 */   private String m_des = "";

/*  18 */   private String m_link = "";



  private int m_weight;



/*  26 */   public TopologyNode(String id) { this.m_id = id; }




  public void accept(IVisitor visitor) { visitor.visitTopologyNode(this); }



  public boolean equals(Object obj) {
    if (obj instanceof TopologyNode) {
/*  37 */       TopologyNode _o = (TopologyNode)obj;

/*  39 */       if (!equals(getId(), _o.getId())) {
/*  40 */         return false;
      }

/*  43 */       return true;
    }

/*  46 */     return false;
  }


/*  50 */   public String getDes() { return this.m_des; }



/*  54 */   public String getId() { return this.m_id; }



/*  58 */   public String getLink() { return this.m_link; }



/*  62 */   public int getStatus() { return this.m_status; }



/*  66 */   public String getType() { return this.m_type; }



/*  70 */   public int getWeight() { return this.m_weight; }



  public int hashCode() {
/*  75 */     int hash = 0;

/*  77 */     return hash * 31 + ((this.m_id == null) ? 0 : this.m_id.hashCode());
  }




  public void mergeAttributes(TopologyNode other) {
/*  84 */     assertAttributeEquals(other, "topology-node", "id", this.m_id, other.getId());

/*  86 */     if (other.getType() != null) {
/*  87 */       this.m_type = other.getType();
    }

/*  90 */     this.m_status = other.getStatus();

/*  92 */     if (other.getDes() != null) {
/*  93 */       this.m_des = other.getDes();
    }

/*  96 */     if (other.getLink() != null) {
/*  97 */       this.m_link = other.getLink();
    }

/* 100 */     this.m_weight = other.getWeight();
  }

  public TopologyNode setDes(String des) {
/* 104 */     this.m_des = des;
/* 105 */     return this;
  }

  public TopologyNode setId(String id) {
/* 109 */     this.m_id = id;
/* 110 */     return this;
  }

  public TopologyNode setLink(String link) {
/* 114 */     this.m_link = link;
/* 115 */     return this;
  }

  public TopologyNode setStatus(int status) {
/* 119 */     this.m_status = status;
/* 120 */     return this;
  }

  public TopologyNode setType(String type) {
/* 124 */     this.m_type = type;
/* 125 */     return this;
  }

  public TopologyNode setWeight(int weight) {
/* 129 */     this.m_weight = weight;
/* 130 */     return this;
  }

  public TopologyNode() {}
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/dependency/graph/entity/TopologyNode.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */